home *** CD-ROM | disk | FTP | other *** search
/ PC Collector 8 - Disc 3 / COLLECT8 (Track 1).bin / deus / install.bat < prev    next >
DOS Batch File  |  1996-05-14  |  2KB  |  120 lines

  1. @echo off
  2. if "%1"=="" goto Erreur
  3. if "%2"=="" goto Erreur
  4.  
  5. @%1
  6. @cd %1\
  7. @cd %2\
  8.  
  9. :deb
  10. Cls
  11. echo 
  12. echo ╔════════╗
  13. echo ║  DEUS  ║
  14. echo ╚════════╝
  15. echo 
  16. echo  (C) Copyright Silmarils 1996
  17. echo 
  18. echo  Select the configuration to install
  19. echo 
  20. echo  (1) Minimum ( 6 Mb)
  21. echo  (2) Maximum (40 Mb)
  22. echo 
  23. echo  (X) Exit
  24. echo 
  25. choice /C12X /N " Your Choice : "
  26. @cls
  27. IF ERRORLEVEL 3 GOTO fin
  28. IF ERRORLEVEL 2 GOTO choix2
  29. IF ERRORLEVEL 1 GOTO choix1
  30. goto deb
  31.  
  32. rem --------------------------------------------------------------------------
  33. rem Maximum
  34. rem --------------------------------------------------------------------------
  35.  
  36. :choix2
  37. Cls
  38. if exist %2\deus\start.exe goto dinst1
  39. md %2\deus >nul
  40. goto iok1
  41.  
  42. :dinst1
  43. echo 
  44. echo Deus already installed,
  45. choice /CYN /N "continue installation (Y/N) : "
  46.  
  47. IF ERRORLEVEL 2 GOTO fin
  48. :iok1
  49.  
  50. echo 
  51. echo please wait, installation in progress...
  52.  
  53. copy start.exe %2\deus >nul
  54. copy save.dat %2\deus >nul
  55. copy *.io %2\deus >nul
  56. copy *.to %2\deus >nul
  57.  
  58. @%2
  59. @cd %2\deus
  60. goto ok
  61.  
  62. rem --------------------------------------------------------------------------
  63. rem Minimum
  64. rem --------------------------------------------------------------------------
  65.  
  66. :choix1
  67. Cls
  68. if exist %2\deus\start.exe goto dinst2
  69. md %2\deus >nul
  70. goto iok2
  71.  
  72. :dinst2
  73. echo 
  74. echo Deus already installed,
  75. choice /CYN /N "continue installation (Y/N) : "
  76.  
  77. IF ERRORLEVEL 2 GOTO fin
  78. :iok2
  79.  
  80. echo 
  81. echo please wait, installation in progress...
  82.  
  83. copy start.exe %2\deus >nul
  84. copy save.dat %2\deus >nul
  85. copy main.io %2\deus >nul
  86. copy a_arc.io %2\deus >nul
  87. copy a_cout.io %2\deus >nul
  88. copy a_gun.io %2\deus >nul
  89. copy a_hach.io %2\deus >nul
  90. copy a_lance.io %2\deus >nul
  91. copy a_laser.io %2\deus >nul
  92. copy a_mitr.io %2\deus >nul
  93. copy a_plasm.io %2\deus >nul
  94. copy a_poing.io %2\deus >nul
  95. copy b_gun.io %2\deus >nul
  96. copy b_hach.io %2\deus >nul
  97. copy b_mitr.io %2\deus >nul
  98. copy b_mitr.io %2\deus >nul
  99. copy c_gun.io %2\deus >nul
  100. copy c_hach.io %2\deus >nul
  101.  
  102. @%2
  103. @cd %2\deus
  104. goto ok
  105.  
  106. :Erreur
  107. echo 
  108. echo *** Procedure Interrupted - Installation Failed ***
  109. echo Install Source_Drive Destination_Drive
  110. echo ex: INSTALL D: C:
  111. goto fin
  112.  
  113. :ok
  114. echo 
  115. echo *** Installation finished ***
  116. echo To play, type START from your Hard drive
  117.  
  118. :fin
  119. echo 
  120.